<?php

use think\facade\Route;

//商学院-分类
Route::group('collegeCate', function () {
    Route::get('/index', 'collegeCate/index');
    Route::get('/getList', 'collegeCate/getList');
    Route::get('/add', 'collegeCate/add');
    Route::get('/edit', 'collegeCate/edit');
    Route::post('/save', 'collegeCate/save');
    Route::rule('/update', 'collegeCate/update');
    Route::post('/delete', 'collegeCate/delete');
})->middleware('verify');

//商学院-课程
Route::group('course', function () {
    Route::get('/index', 'course/index');
    Route::get('/getList', 'course/getList');
    Route::get('/add', 'course/add');
    Route::get('/edit', 'course/edit');
    Route::post('/save', 'course/save');
    Route::rule('/update', 'course/update');
    Route::post('/delete', 'course/delete');
})->middleware('verify');

//商学院-课程点赞
Route::group('courseHit', function () {
    Route::get('/index', 'courseHit/index');
    Route::get('/getList', 'courseHit/getList');
})->middleware('verify');

//商学院-课程评论
Route::group('courseComment', function () {
    Route::get('/index', 'courseComment/index');
    Route::get('/getList', 'courseComment/getList');
    Route::post('/delete', 'courseComment/delete');
})->middleware('verify');

//商学院-课程订单
Route::group('courseOrder', function () {
    Route::get('/index', 'courseOrder/index');
    Route::get('/getList', 'courseOrder/getList');
})->middleware('verify');
